/**
 * Project Name:nplus1
 * File Name:RestApiResult.java
 * Package Name:com.gamma.nplus1.common.entity
 * Date:2017年5月18日下午9:48:40
 * Copyright (c) 2017, nplus1 Co., Ltd. All Rights Reserved.
 *
*/

package com.gamma.nplus1.common.entity;

import java.io.Serializable;

/**
 * ClassName:RestApiResult <br/>
 * Function: restapi result bean. <br/>
 * Date:     2017年5月18日 下午9:48:40 <br/>
 * @author   jeno
 * @version  
 * @since    JDK 1.7
 */
public class RestApiResult implements Serializable {

	/**
	 * serialVersionUID
	 * @since JDK 1.7
	 */
	private static final long serialVersionUID = 8412148544496393277L;
	
	private int code;
	
	private String message;
	
	private Object data;

	public RestApiResult(int code,String message) {
		this.code = code;
		this.message = message;
	}
	
	public RestApiResult(int code,String message,Object data) {
		this.code = code;
		this.message = message;
		this.data = data;
	}
	
	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
}

